import request from '@/utils/request'

// 查询职员档案列表
export function listEmployees(query) {
  return request({
    url: '/system/employees/list',
    method: 'get',
    params: query
  })
}

// 查询职员档案详细
export function getEmployees(empId) {
  return request({
    url: '/system/employees/' + empId,
    method: 'get'
  })
}

// 新增职员档案
export function addEmployees(data) {
  return request({
    url: '/system/employees',
    method: 'post',
    data: data
  })
}

// 修改职员档案
export function updateEmployees(data) {
  return request({
    url: '/system/employees',
    method: 'put',
    data: data
  })
}

// 删除职员档案
export function delEmployees(empId) {
  return request({
    url: '/system/employees/' + empId,
    method: 'delete'
  })
}
